#include "tableModel.h"

#include <QString>
#include <QHeaderView>

PackList::PackList(){
	setListStyle();
}

PackList::~PackList() {}

void PackList::setListStyle() {
// setta lo stile della lista
  setColumnCount(4);  // 5 quando ci saranno le icone
  setColumnWidth(0, 80);
  setIconSize(QSize(64, 64));
  setRootIsDecorated(false);
  setAllColumnsShowFocus(true);
  setMinimumWidth(450);

  headerItem()->setText(0, "Last use");
  header()->setResizeMode(0, QHeaderView::ResizeToContents);
  headerItem()->setText(1, "Size");
  header()->setResizeMode(1, QHeaderView::ResizeToContents);
  headerItem()->setText(2, "Name");
  header()->setResizeMode(2, QHeaderView::Stretch);
  //headerItem()->setText(3, " ");  // icona
  //header()->setResizeMode(3, QHeaderView::ResizeToContents);
  headerItem()->setText(3, "Informations"); // se e' un apt formattare il contenuto
  header()->setResizeMode(3, QHeaderView::Stretch); // il 3 deve ritornare 4 quando si useranno le icone
}

